using System.Data;
using Oracle.ManagedDataAccess.Client;

namespace Lzfy_His_Service.Services
{
    public class OracleConnectionFactory : IOracleConnectionFactory
    {
        private readonly string _connectionString;

        public OracleConnectionFactory(string connectionString)
        {
            _connectionString = connectionString;
        }

        public IDbConnection CreateConnection()
        {
            return new OracleConnection(_connectionString);
        }
    }
}